<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">添加数据</a></li>
		</ul>
		<form action="{:U('')}" method="post" class="form-horizontal js-ajax-forms edit-form" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<input type="hidden" name='post[sn]' value="{:get_account_info(['ep_name'=>$_GET['name']],'sn')}" />
						<tr>
							<th>姓名</th>
							<td>
								<input type="text" readOnly="true" value="{$_GET[name]}" />
							</td>
						</tr>
						<tr>
							<th>日期</th>
							<td>
								<input type="text" style="width: 200px;" name="post[date]" value="{$info.date}" class="js-date"  />
							</td>
						</tr>
						
						<tr>
							<th>类型</th>
							<td>
								<label class='radio inline' for='type_1'><input type="radio" id='type_1' {$info[type] == "在公司" ? checked : '' } value="在公司" name="post[type]">外公司</label>
								<label class='radio inline' for='type_2'><input type="radio" id='type_2' {$info[type] == "外出" ? checked : '' } value="外出" name="post[type]">外出办公</label>
							</td>
						</tr>
						<tr>
							<th>外出事由</th>
			        	    <td>
			        	    	<textarea name="" id="" cols="50" rows="3" style='resize:none;'></textarea>
			                </td>
						</tr>
					</table>
				</div>

			</div>
			<div class="form-actions">
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a href="{:U('index')}" class="btn btn-primary js-ajax-submit" type="submit">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js?t={:time()}"></script>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript">

 	 validateForm({
	      rule:{
	  		'post[title]' : {required : 1},
	  		'post[start_date]' : {required : 1},
	  		'post[end_date]' : {required : 1},
	  		},
	      message:{
		'post[title]' : {required : '请设置节假日名称'},
		'post[start_date]' : {required : '请设置开始时间'},
		'post[end_date]' : {required : '请设置结束时间'},
		}
	 },"{:U('Festival/index')}") 
	 
	    
	 </script>
</body>
</html>